//
//  AppNetworkingManager+UserMananer.h
//  OANetworkManager
//
//  Created by TFAppleWork-Summer on 2018/2/9.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

#import <OANetworkManager/AppNetworkingManager.h>

@interface AppNetworkingManager (UserMananer)

/**
 用户修改 (判断回调中的[object boolValue],errorInfo 取error.localizedDescription)
 @param url 头像地址
 @param desc 个性签名
 @param complete 回调
 */
+(AppBaseRequest *)userUpdateWithAvatarURL:(NSString *)url
                                      desc:(NSString *)desc
                                  complete:(OANetworkingObjectBlock) complete;

/**
 密码验证 (判断回调中的[object boolValue],errorInfo 取error.localizedDescription)
 @param pwd 用户密码
 @param complete 接口回调
 */
+(AppBaseRequest *)verifyPwdWithPwd:(NSString *)pwd
                           complete:(OANetworkingObjectBlock)complete;


/**
 修改密码 (判断回调中的[object boolValue],errorInfo 取error.localizedDescription)
 @param password 新密码
 @param phone 手机号 (修改密码的时候传nil)
 @param complete 接口回调
 */
+(AppBaseRequest*)updatePwdWithPwd:(NSString *)password
                             phone:(NSString *)phone
                          complete:(OANetworkingObjectBlock)complete;

@end
